package com.crm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 公海池表
 * </p>
 *
 * @author Hulunico
 * @since 2024-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("business_pool")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="BusinessPool对象", description="公海池表")
public class BusinessPool implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作人id")
    private Long userId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "意向学科,关联字典数值")
    private String subject;

    @ApiModelProperty(value = "归属人")
    private String owner;

    @ApiModelProperty(value = "商机状态,关联字典数值")
    private String status;

    @ApiModelProperty(value = "性别 1:男 2:女")
    private String sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "微信")
    private String weixin;

    @ApiModelProperty(value = "qq")
    private String qq;

    @ApiModelProperty(value = "省")
    private String provinces;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "课程id")
    private Long courseId;

    @ApiModelProperty(value = "在职情况，关联字典")
    private Integer job;

    @ApiModelProperty(value = "期望工资")
    private String expectedSalary;

    @ApiModelProperty(value = "渠道来源,关联字典类型数值")
    private String channel;

    @ApiModelProperty(value = "意向等级,关联字典数值")
    private String level;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "分配人")
    private String assignBy;

    @ApiModelProperty(value = "分配时间")
    private LocalDateTime assignTime;

    @ApiModelProperty(value = "活动信息id")
    private Long activityId;

    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "活动信息")
    private String activityInfo;

    @ApiModelProperty(value = "归属时间")
    private LocalDateTime ownerTime;

    @ApiModelProperty(value = "下次跟进时间")
    private LocalDateTime nextTime;

    @ApiModelProperty(value = "其他打算")
    private String otherIntention;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "转派")
    private String transfer;

    @ApiModelProperty(value = "地区")
    private String region;

    @ApiModelProperty(value = "职业")
    private String occupation;

    @ApiModelProperty(value = "教育")
    private String education;

    @ApiModelProperty(value = "工资")
    private String salary;

    @ApiModelProperty(value = "专业")
    private String major;

    @ApiModelProperty(value = "原因")
    private String reasons;

    @ApiModelProperty(value = "计划")
    private String plan;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划时间")
    private LocalDateTime planTime;

    @ApiModelProperty(value = "线索id")
    private Long clueId;


}
